<?php



/**
 * Group
 */
class Group
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var string $name
     */
    private $name;

    /**
     * @var string $description
     */
    private $description;

    /**
     * @var string $color
     */
    private $color;

    /**
     * @var integer $redro
     */
    private $redro;

    /**
     * @var Credential
     */
    private $credentials;

    public function __construct()
    {
        $this->credentials = new \Doctrine\Common\Collections\ArrayCollection();
    }
    
    /**
     * Get id
     *
     * @return integer $id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string $name
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param string $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return string $description
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set color
     *
     * @param string $color
     */
    public function setColor($color)
    {
        $this->color = $color;
    }

    /**
     * Get color
     *
     * @return string $color
     */
    public function getColor()
    {
        return $this->color;
    }

    /**
     * Set redro
     *
     * @param integer $redro
     */
    public function setRedro($redro)
    {
        $this->redro = $redro;
    }

    /**
     * Get redro
     *
     * @return integer $redro
     */
    public function getRedro()
    {
        return $this->redro;
    }

    /**
     * Add credentials
     *
     * @param Credential $credentials
     */
    public function addCredentials(\Credential $credentials)
    {
        $this->credentials[] = $credentials;
    }

    /**
     * Get credentials
     *
     * @return Doctrine\Common\Collections\Collection $credentials
     */
    public function getCredentials()
    {
        return $this->credentials;
    }
}